package org.wanda.pv.service.business.impl;

import org.nutz.dao.Dao;
import org.springframework.stereotype.Service;
import org.wanda.pv.model.business.ProjectCheckNotice;
import org.wanda.pv.service.BaseServiceImpl;
import org.wanda.pv.service.business.ProjectCheckNoticeService;

/**
 * @author lxy
 * Created by 2019/1/3 14:23
 */
@Service
public class ProjectCheckNoticeServiceImpl extends BaseServiceImpl<ProjectCheckNotice> implements ProjectCheckNoticeService {
	public ProjectCheckNoticeServiceImpl(Dao dao) {
		super(dao);
	}

	@Override
	public void addProjectCheckNotice(String projectId, Long hyUserInfoId, Long projectCheckStateId, String message, int noticeType) {
		ProjectCheckNotice projectCheckNotice = new ProjectCheckNotice();
		projectCheckNotice.setHyProjectId(projectId);
		projectCheckNotice.setProjectCheckStateId(projectCheckStateId);
		projectCheckNotice.setHyUserInfoId(hyUserInfoId);
		projectCheckNotice.setNoticeType(noticeType);
		projectCheckNotice.setMessage(message);
		dao().insert(projectCheckNotice);
	}
}
